package com.powernode.spring6.service;

import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @Author 27435
 * @Date 2024/12/1416:45
 * @Version 1.0
 */
@Component
@Aspect
@Order(1) // 数字越小，优先级越高
public class SecurityAspect { // 安全切面

    // 通知 + 切点
    @Before("com.powernode.spring6.service.LogAspect.通用切点()")
    public void beforeAdvice(){
        System.out.println("前置通知：安全....");
    }

}
